package com.suteng.manager;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

import com.zls.fond.FondActivity;
import com.zls.goal.GoalActivity;

public class ManagementHelperActivity extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        main_fond = (Button) findViewById(R.id.main_fond);
        main_fond.setOnClickListener(listener);
        main_goal = (Button) findViewById(R.id.main_goal);
        main_goal.setOnClickListener(listener);
        main_relationship = (Button) findViewById(R.id.main_relationship);
        main_relationship.setOnClickListener(listener);
        main_time = (Button) findViewById(R.id.main_time);
        main_time.setOnClickListener(listener);
    }
    
    private OnClickListener listener = new OnClickListener() {
		
		public void onClick(View v) {
			if(v.getId()==main_fond.getId()){
				Intent intent_fond = new Intent(ManagementHelperActivity.this,FondActivity.class);
				startActivity(intent_fond);
			}
			
			if(v.getId()==main_goal.getId()){
				Intent intent_fond = new Intent(ManagementHelperActivity.this,GoalActivity.class);
				startActivity(intent_fond);
			}
			if(v.getId()==main_relationship.getId()){
				Intent intent_fond = new Intent(ManagementHelperActivity.this,FondActivity.class);
				startActivity(intent_fond);
			}
			if(v.getId()==main_time.getId()){
				Intent intent_fond = new Intent(ManagementHelperActivity.this,TimeActivity.class);
				startActivity(intent_fond);
			}
		}
	};

	private Button main_fond;

	private Button main_goal;

	private Button main_time;

	private Button main_relationship;}